import { getAction, postAction } from "@/utils/httpUtils";

const api = {
  list: "/api/users",
  create: "/api/users",
  login: "/api/auth/login",
};

export const getUserList = (params) => {
  return getAction(api.list, params);
};

export const createUser = (data) => {
  return postAction(api.create, data);
};

export const login = (data) => {
  return postAction(api.login, data);
};
